<script type="text/javascript">
<!--
$(document).ready(function(){
    $('.hover').popover({
    	html: true
    })
});
//-->
</script>
<div class="content_wrapper">
    <legend>Danh sách sản phẩm</legend>
    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered table-condensed" id="example" width="100%">
        <thead>
            <tr>
                <th width="25">ID</th>
                <th width="20%">Tên sản phẩm</th>
                <th width="100">Ảnh</th>
<!--                <th width="100">Webgame</th>-->
                <th width="100">Web link</th>
                <th width="60">Tùy chọn</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach($result as $key => $value) :?>
             <tr>
                <td><?php echo $value->product_id;?></td>
                <td><?php echo $value->title;?></td>
                <td>
                <img src="<?php echo base_url('uploads/product/').'/'.$value->product_id.'/'.md5($value->product_id).'.jpg'; ?>" height="100px" />
                </td>
<!--                <td><?php echo $value->webgame; ?></td>-->
                <td><?php echo $value->weblink; ?></td>
                <td>
   <i title="Kích hoạt" _id_key="product_id" _id_value="<?php echo $value->product_id;?>" _field_key="active_flag" _field_value="<?php echo $value->active_flag;?>" _table="<?php echo TBL_PRODUCT;?>" _icon_active="icon-ok" _icon_unactive="icon-ban-circle" class="btn_active <?php echo ($value->active_flag == 1) ? 'icon-ok' : 'icon-ban-circle'; ?>"></i>
   <a href="<?php echo base_url('admin/product/edit/'.$value->product_id);?>"><i class="icon-edit"></i></a>
    <a href="javascript: void(0);" _key="product_id" _id="<?php echo $value->product_id;?>" _table="<?php echo TBL_PRODUCT?>" class="btn_delete del_product2"><i class="icon-remove"></i></a>
                </td>
            </tr>
        <?php endforeach; ?>
            <?php if (count($result) == 0):?>
            <tr><td colspan="10">Chưa có dữ liệu sản phẩm</td></tr>
            <?php endif;?>
        </tbody>
    </table>
</div>
